﻿﻿<template>
    <el-card class="form-container">
        <el-form :model="regionDetail"   label-width="100px">
                            <el-form-item label="区域id" prop="id">
                    <el-input v-model="regionDetail.id"  disabled="disabled"></el-input>
                </el-form-item>
                            <el-form-item label="行政区划代码" prop="regionCode">
                    <el-input v-model="regionDetail.regionCode"  disabled="disabled"></el-input>
                </el-form-item>
                            <el-form-item label="父级id" prop="parentCode">
                    <el-input v-model="regionDetail.parentCode"  disabled="disabled"></el-input>
                </el-form-item>
                            <el-form-item label="地区名称" prop="regionName">
                    <el-input v-model="regionDetail.regionName"  disabled="disabled"></el-input>
                </el-form-item>
                            <el-form-item label="层级" prop="regionLevel">
                    <el-input v-model="regionDetail.regionLevel"  disabled="disabled"></el-input>
                </el-form-item>
                            <el-form-item label="排序号,1:省级,2:地市,3:区县" prop="regionSort">
                    <el-input v-model="regionDetail.regionSort"  disabled="disabled"></el-input>
                </el-form-item>
                            <el-form-item label="显示,1:显示,0:隐藏" prop="regionStatus">
                    <el-input v-model="regionDetail.regionStatus"  disabled="disabled"></el-input>
                </el-form-item>
                            <el-form-item label="备注" prop="regionRemark">
                    <el-input v-model="regionDetail.regionRemark"  disabled="disabled"></el-input>
                </el-form-item>
                            <el-form-item label="创建时间" prop="createTime">
                    <el-input v-model="regionDetail.createTime"  disabled="disabled"></el-input>
                </el-form-item>
                            <el-form-item label="修改时间" prop="updateTime">
                    <el-input v-model="regionDetail.updateTime"  disabled="disabled"></el-input>
                </el-form-item>
                        <el-form-item>
                <el-button @click="close">关闭</el-button>
            </el-form-item>
        </el-form>
    </el-card>
</template>

<script>
    import { findRegionDetail } from '@/api/admin/region'
    export default{
        name: 'view-region',
        data(){
            return {
                regionDetail: {}
            }
        },
        created() {
            this.view(this.$route.query.id)
        },
        methods:{
            view(val){
                findRegionDetail(val).then(res => {
                    console.log('查询返回结果',res)
                this.userDetail = res.data.responseData
            })
            },
            close(){
                this.$router.go(-1)
            }
        }
    }
</script>

<style>
</style>
